
import { RouteRecordRaw } from "vue-router";

const MenuRoute = [
  {
    name: '工作台',
    component: 'BasicLayout',
    id: 1,
    path: '/',
    key: 'home',
    redirect: '/manage',
    children: [
      {
        name: '管理中心',
        icon: 'DashboardOutlined',
        path: '/manage',
        key: "manage",
        component: "/manage/index"
      }]
  },
  // 用户
  {
    name: '用户',
    component: 'BasicLayout',
    id: 2,
    path: '/',
    key: 'layouts',
    redirect: '/member/company',
    children: [
      {
        name: '会员管理',
        path: '/member',
        key: "member",
        component: 'RouteView',
        children: [
          {
            name: '企业会员',
            path: '/member/company',
            key: 'company',
            component: '/member/company'
          },
          {
            name: '个人会员',
            path: '/member/personal',
            key: 'personal',
            component: '/member/personal'

          }
        ]
      },
      {
        name: '个人简历管理',
        path: '/user',
        key: "usermanage",
        component: 'RouteView',
        children: [
          {
            name: '全部简历',
            path: '/user/userall',
            key: 'userall',
            component: '/resume/resume_all'
          },
          // {
          //   name: '简历回收站',
          //   path: '/user/userurm',
          //   key: 'userurm',
          //   component: '/resume/resume_recycle'

          // },
          // {
          //   name: '投递简历记录',
          //   path: '/user/userjob',
          //   key: 'userjob',
          //   component: '/resume/resume_record'

          // },
        ]
      },
      {
        name: '企业信息管理',
        path: '/enterpriseinfo/all_thread',
        key: "enterpriseinfo",
        component: 'RouteView',
        children: [
          {
            name: '全部线索',
            path: '/enterpriseinfo/allxian',
            key: 'allxian',
            component: '/enterpriseinfo/all_thread'
            // component: '/element/icons'
          },
          {
            name: '我的线索',
            path: '/enterpriseinfo/myxian',
            key: 'myxian',
            component: '/enterpriseinfo/my_thread'

          },
          {
            name: '线索公海',
            path: '/enterpriseinfo/xianhai',
            key: 'xianhai',
            component: '/enterpriseinfo/thread_sea'

          },
          {
            name: '全部客户',
            path: '/enterpriseinfo/kehuall',
            key: 'kehuall',
            component: '/enterpriseinfo/all_customers'

          },
          {
            name: '新增客户',
            path: '/enterpriseinfo/addkehuall',
            key: 'addkehuall',
            component: '/enterpriseinfo/add_all_customers'

          },
          {
            name: '我的客户',
            path: '/enterpriseinfo/mykehu',
            key: 'mykehu',
            component: '/enterpriseinfo/my_customers'

          },
          {
            name: '客户公海',
            path: '/enterpriseinfo/kehuhai',
            key: 'kehuhai',
            component: '/enterpriseinfo/customers_sea'

          },
          // {
          //   name: 'CRM设置',
          //   path: '/enterpriseinfo/crmset',
          //   key: 'crmset',
          //   component: '/enterpriseinfo/crm_set'

          // },
          // {
          //   name: 'CRM回收站',
          //   path: '/enterpriseinfo/huishou',
          //   key: 'huishou',
          //   component: '/enterpriseinfo/crm_recycle'

          // }
        ]
      },
      {
        name: '职位信息管理',
        path: '/user',
        key: "jobmanage",
        component: 'RouteView',
        children: [
          {
            name: '职位管理',
            path: '/user/joblist',
            key: 'joblist',
            component: '/position/position_manage'
          },
          {
            name: '职位修改',
            path: '/user/jobup',
            key: 'jobup',
            component: '/position/position_manage_edit',
            hidden: true


          },
        ]
      },
    ]
  },

  //业务
  //内容

  {
    name: '内容',
    component: 'BasicLayout',
    id: 4,
    path: '/content/advertisinglist',
    key: 'content',
    redirect: '/content/advertisinglist',
    children: [
      {
        name: '广告管理',
        icon: 'AlertFilled',
        path: '/content/advertisinglist',
        key: "ad",
        component: "RouteView",
        children: [
          {
            name: '广告列表',
            path: '/content/advertisinglist',
            key: 'advertisinglist',
            component: '/content/advertising/advertisinglist'
          },
          {
            name: '广告位',
            path: '/content/advertising_place',
            key: 'advertising_place',
            component: '/content/advertising/advertising_place'
          },
          {
            name: '广告位添加',
            path: '/content/advertising_place/add',
            key: 'advertising_place_add',
            component: '/content/advertising/adwei_add',
            hidden:true
          },
          {
            name: '广告位修改',
            path: '/content/advertising_place/edit',
            key: 'advertising_place_edit',
            component: '/content/advertising/adwei_edit',
            hidden:true
          },
          {
            name: '广告添加',
            path: '/content/advertisinglist/add',
            key: 'advertisinglist_add',
            component: '/content/advertising/advertisinglist_add',
            hidden:true
          },
          {
            name: '广告修改',
            path: '/content/advertisinglist/edit',
            key: 'advertisinglist_edit',
            component: '/content/advertising/advertisinglist_edit',
            hidden:true
          }
        ]
      }
    ]
  },
  //移动端
  //画像
  //工具
  //应用
  //系统

  {
    name: '系统',
    component: 'BasicLayout',
    id: 9,
    path: '/',
    key: 'layout',
    redirect: '/system',
    children: [
      {
        name: '分类配置',
        icon: 'cluster-outlined',
        path: '/classification',
        key: "classification",
        component: 'RouteView',
        children: [
          {
            name: '地区分类',
            path: '/classification/city',
            icon: 'cluster-outlined',
            key: 'city',
            component: "/system/classification/city"
          },
          {
            name: '职位分类',
            path: '/classification/position',
            key: 'position',
            icon: 'SettingOutlined',
            component: "/system/classification/position"
          },
          {
            name: '专业分类',
            path: '/classification/profession',
            key: 'profession',
            icon: 'SettingOutlined',
            component: "/system/classification/profession"
          },
        ]
      },

      {
        name: '系统管理员',
        icon: 'cluster-outlined',
        path: '/sys/adminlist',
        key: "sys",
        component: 'RouteView',
        children: [
          {
            name: '管理员列表',
            path: '/sys/adminlist',
            icon: 'cluster-outlined',
            key: 'adminlist',
            component: "/system/admin/list",
          },
          {
            name: '管理员列表详情',
            path: '/sys/adminlist/add',
            icon: 'cluster-outlined',
            key: 'adminlist1',
            component: "/system/admin/add",
            hidden:  true
          },
          // 编辑
          {
            name: '管理员编辑',
            path: '/sys/adminlist/edit',
            key: 'adminlist2',
            component: "/system/admin/edit",
            hidden: true
          },
          {
            name: '角色权限管理',
            path: '/setting/adminrole',
            key: 'adminrole',
            icon: 'SettingOutlined',
            component: "/system/admin/role"
          },
          {
            name: '角色管理添加',
            path: '/setting/adminrole/addrole',
            key: 'adminrole1',
            icon: 'SettingOutlined',
            component: "/system/admin/addrole",
            hidden: true
          },
          {
            name: '角色管理编辑',
            path: '/setting/adminrole/editrole',
            key: 'adminrole2',
            icon: 'SettingOutlined',
            component: "/system/admin/editrole",
            hidden: true
          },
        ]
      },

    ]
  },

]

export { MenuRoute }